package com.accenture.adf.newcodington.module10.sample;

/**
 * Topic: Inheritance
 * 
 * Instructions:
 * 
 * 	The Manager class is to be created and updated in the participant folder by the 
 * 	faculty during See It tasks for the module.
 * 	This class is a solution for the task.
 *
 */

public class Manager extends Employee { // The Manager class is inheriting from the Employee class
	
	// declaring a Manager class attribute to store number of Reportee's
	private int numberOfReportees;
	
	/**
	 * @return the numberOfReportees
	 */
	public int getNumberOfReportees() {
		return numberOfReportees;
	}

	/**
	 * @param numberOfReportees the numberOfReportees to set
	 */
	public void setNumberOfReportees(int numberOfReportees) {
		this.numberOfReportees = numberOfReportees;
	}

	// overridden printDetails() method to display Manager details
	public void printDetails()
	{
		System.out.println("Id : "+getId());
		System.out.println("Name :"+getEname());
		System.out.println("Email :"+getEmail());
		System.out.println("Vacation Days :"+getVacationDays());
		System.out.println("Number of Reportees :"+getNumberOfReportees());
	}
}
